<?php

	/*
	* @author Nguyen Xuan Hong
	* @copyright 2011
	*/
							
	require_once('../includes/branch.tbl.php');
	
	//$pageconfig->reloadocunter();
	//$subpageconfig->unUserAttr(array("username"));
	
	$branch_id = $_GET['branch'];
	
	if($branch_id > 0)
	{
		$pClsBranch = new clsBranchTable;
		$pClsBranch->loadDB('id', $branch_id);
		if($pClsBranch->avaibleSubmit())
		{
			$pClsBranch->loadBuffer();
			
			$pClsBranch->updateDB('id', $branch_id);
			echo acpredirect();
			exit();
		}
		echo $pClsBranch->createForm('Thay đổi thông tin cơ sở');
		exit();
	}
?> 














  